#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#include<string.h>
void F(char* str, int k)
{
	int len = strlen(str);
	int n = k % len;
	char temp[256] = {0};
	strcpy(temp, str + n);
	strncat(temp, str, n);
	strcpy(str, temp);
}
int main()
{
	char ch[] = "abcdef";
	int m = 7;
	F(ch, m);
	printf("%s\n", ch);
	return 0;
}